package Queue;

public class Entry implements Priority{

    private String string;
    private int priority;

    public Entry(String string, int priority) {
        this.string = string;
        this.priority = priority;
    }

    @Override
    public int priority() {
        return priority;
    }

    @Override
    public String toString() {
        return string +":"+ priority;
    }
}
